package com.example.crm.service.Imp;

import com.example.crm.mapper.LostMapper;
import com.example.crm.entity.Lost;
import com.example.crm.service.LostService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LostServiceImpl implements LostService {

    @Resource
    private LostMapper lostMapper;


    @Override
    public List<Lost> findAll(String lstCustName, String lstCustManagerName, Integer current, Integer pageSize) {
        return lostMapper.findAll(lstCustName,lstCustManagerName,current,pageSize);
    }

    @Override
    public Lost findByLstId(Integer lstId) {
        return lostMapper.findByLstId(lstId);
    }

    @Override
    public int update(Lost lost) {
        return lostMapper.update(lost);
    }

    @Override
    public int count(String lstCustName, String lstCustManagerName) {
        return lostMapper.count(lstCustName,lstCustManagerName);
    }
}
